package com.test.demos.service;

import com.test.demos.pojo.dto.AppointmentsDTO;
import com.test.demos.pojo.entity.Appointments;
import com.test.demos.pojo.vo.AppointmentsVO;
import com.test.demos.utils.Result;

import java.util.List;

/**
 * (Appointments)表服务接口
 *
 * @author twt
 * @since 2025-04-14 16:25:36
 */
public interface AppointmentsService {
    /**
     * 通过ID查询单条数据
     *
     * @param appointmentId 主键
     * @return 实例对象
     */
    Appointments queryById(Integer appointmentId);

    /**
     * 通过主键删除数据
     *
     * @param appointmentId 主键
     * @return 是否成功
     */
    void deleteById(Integer appointmentId);



    Result booking(AppointmentsDTO dto);

    AppointmentsVO myAppointments(Integer loginId);

    List<Appointments> queryAll();
}
